/*************************************************************************
 *                                                                       *
 * This file is part of the FreeMAPs distribution.  For full copyright   *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 * Date:             2015.07.10                                          *
 * Description:      SimpleRegion that has a unitary material            *
 *                                                                       *
 *************************************************************************/

namespace FreeMAPs
{

inline bool
SimpleRegion::use_structured_mesh() const
{
    return d_use_structured_mesh;
}


inline const std::string&
SimpleRegion::get_simple_region_name() const
{
    return this->get_object_name();
}


inline bool
SimpleRegion::has_attribute() const
{
    return d_attribute;
}


inline const Attribute*
SimpleRegion::get_attribute() const
{
    FREEMAPS_ASSERT_VALID_POINTER (d_attribute);

    return d_attribute;
}


inline const std::string
SimpleRegion::get_attribute_name() const
{
    return d_attribute->get_attribute_name();
}


inline void
SimpleRegion::set_attribute(
        const std::string& attr_name)
{
    d_attribute = new Attribute(this->get_full_name(), attr_name);
}

} //namespace FreeMAPs
